﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PluginInterface;

namespace SimplePlainTextEditor
{
	public class Plugin : IPlugin
	{
		public Plugin()
		{
		}

		private string myName = "Notepad";
		private string myDescription = " A simple plain text editor.";
		private string myAuthor = "Gabriel Bischof";
		private string myVersion = "1.0.0";

		private IPluginHost myHost = null;
		private System.Windows.Forms.UserControl myMainInterface = new ucMain();

		public string Name
		{
			get {return myName;}
		}

		public string Author
		{
			get { return myAuthor; }
		}

		public string Description
		{
			get { return myDescription; }
		}

		public System.Windows.Forms.UserControl MainInterface
		{
			get {return myMainInterface;}
		}

		public string Version
		{
			get	{return myVersion;}
		}

		public IPluginHost Host
		{
			get { return myHost; }
			set { myHost = value; }
		}
		
		public void Initialize()
		{
			//This is the first Function called by the host...
			//Put anything needed to start with here first
		}
		
		public void Dispose()
		{
			//Put any cleanup code in here for when the program is stopped
		}
	}
}
